package easing 
{
	/**
	 * ...
	 * @author carlor
	 */
	public class Quartic 
	{
		/*
		 *  t: current time;
		 *  b: start value;
		 *  c: change in value
		 *  d: duration
		 */
		
		public function Quartic() 
		{
			
		}
		
		static public function easingIn(t: Number, b: Number, c: Number, d: Number): Number
		{
			t /= d;
			return c * t * t * t * t + b;
		}
		
		static public function easingOut(t: Number, b: Number, c: Number, d: Number): Number
		{
			t /= d;
			t--;
			return -c * (t * t * t * t - 1) + b;
		}
		
		static public function easingInout(t: Number, b: Number, c: Number, d: Number): Number
		{
			t /= d / 2;
			if (t < 1) return c / 2 * t * t * t * t + b;
			t -= 2;
			return -c / 2 * (t * t * t * t - 1) + b;
		}
	}

}